package com.ynrcc.intercept;

import com.eova.aop.AopContext;
import com.eova.aop.MetaObjectIntercept;

public class MyDocIntercept extends MetaObjectIntercept {
	@Override
	/*
	 * 在“我的文档”中只能查看借阅成功的档案
	 * 
	 * @see
	 * com.eova.aop.MetaObjectIntercept#queryBefore(com.eova.aop.AopContext)
	 */
	public void queryBefore(AopContext ac) throws Exception {
		String loginid = ac.user.getStr("LOGIN_ID");
		ac.condition = " and login_id = '" + loginid + "'";
		System.out.println("Intercept condidtion=[" + ac.condition + "]");
	}
}
